﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<VCC.Site.ViewModels.TopNewsViewModel>" %>
<div class="tt_r_hd">
    <span>
    <%if (Model.LanguageID == 1)
      {%>
    Tin nổi bật
    <%}
      else
      { %>
      Hot news
      <%} %></span></div>
<div class="new">
    <marquee height="320" behavior="scroll" align="center" direction="up" scrollamount="3" scrolldelay="150" onmouseover="this.stop()" onmouseout="this.start()">
    <ul>
    
    <%  if (Model.HotNews.Count() >0)
        {
            foreach(var item in Model.HotNews)
            {%>
        <li><a href="/Article/Details/<%=item.ID%>"><%= item.Title.Length >= 150 ? item.Title.Substring(0, 150) + "..." : item.Title%></a></li>
        <%}}%>
    </ul>
    </marquee>
</div>
